package com.nowcoder.community.utils;

/**
 * @Author: shuhuang
 * @description:
 * @Date: 2022/10/7 20:48
 * @Version java version 1.8
 */
public class ConstantUtil {
    /**
     * 激活成功
     */
    public static final int ACTIVATION_SUCCESS = 0;
    /**
     * 重复激活
     */
    public static final int ACTIVATION_REPEAT = 1;
    /**
     * 激活失败
     */
    public static final int ACTIVATION_FAILURE = 2;
    /**
     * 点击“记住我”后登录凭证失效的时间（7天）
     */
    public static final int REMEMBER_EXPIRED_SECONDS = 3600 * 24 * 7;
    /**
     * 默认状态的登录凭证失效时间（12个小时）
     */
    public static final int DEFAULT_EXPIRED_SECONDS = 3600 * 12;
    /**
     * 实体类型：帖子的评论
     */
    public static final int ENTITY_TYPE_POST = 1;
    /**
     * 实体类型：回复的评论
     */
    public static final int ENTITY_TYPE_REPLY = 2;
    /**
     * 实体类型：用户
     */
    public static final int ENTITY_TYPE_USER = 3;
    /**
     * 主题：评论
     */
    public static final String TOPIC_COMMENT = "comment";
    /**
     * 主题：点赞
     */
    public static final String TOPIC_LIKE = "like";
    /**
     * 主题：关注
     */
    public static final String TOPIC_FOLLOW = "follow";
    /**
     * 主题：发帖
     */
    public static final String TOPIC_PUBLISH = "publish";
    /**
     * 主题：删帖
     */
    public static final String TOPIC_DELETE = "delete";
    /**
     * 系统用户ID
     */
    public static final int SYSTEM_USER_ID = 1;
    /**
     * 权限：普通用户
     */
    public static final String AUTHORITY_USER = "user";
    /**
     * 权限：管理员
     */
    public static final String AUTHORITY_ADMIN = "admin";
    /**
     * 权限：版主
     */
    public static final String AUTHORITY_MODERATOR = "moderator";


}
